<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
require_once 'admin.php';
require_once 'wechat.php';

Route::get('/', function () {
    return view('welcome');
});
Route::prefix('index')->namespace('Index')->group(function (){
    Route::get('/',"IndexController@index");
    Route::get('/welcome',"IndexController@welcome");
    Route::get('/compute',"IndexController@compute");
    Route::get('/tj',"IndexController@tiaojian");
    Route::any('/count',"IndexController@count");
    Route::get('/input',"IndexController@input");
    Route::get('/green',"IndexController@green");
});
Route::get('/index/news',"News\NewsController@news");

/*Route::fallback(function (){
    return view('404');
});*/
